package com.wzcl.app.model.vo;

import com.wzcl.app.dao.model.Subject;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

@EqualsAndHashCode(callSuper = false)
@Data
public class SubjectVo extends BaseVo {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学科名字")
    private String name;

    @ApiModelProperty(value = "学科编号")
    private String code;


    private SubjectVo() {
    }

    public static SubjectVo create(Subject subject){
        SubjectVo subjectVo = new SubjectVo();
        BeanUtils.copyProperties(subject,subjectVo);
        subjectVo.translationValueStr();
        return subjectVo;
    }

    @Override
    public void translationValueStr() {
    }

    @Override
    public void processResources() {

    }
}
